
<template>
  <div class="pages-content">
    <div class="tab-box">
      <div
        v-for="(item, index) in tabList"
        :key="item.id"
        class="tab-li"
        :class="{ activeTab: index === activeTabValue }"
        @click="activeTabValue = index"
      >
        <img :src="item.icon" alt="" />
        <div class="name">{{ item.name }}</div>
      </div>
    </div>
    <div class="router-nav">三级菜单111</div>
    <router-view />
    <!-- <taskWork class="work-box"></taskWork> -->
  </div>
</template>
<script>
import taskWork from "../taskWork/index.vue"; // /主页右侧内容
export default {
  name: "pageContentHome",
  components: {
    // taskWork,
  },
  data() {
    return {
      activeTabValue: 1, // 选中tab值
      tabList: [
        { icon: require("@/assets/icon_rome.png"), name: "综合大屏" },
        { icon: require("@/assets/icon_rome.png"), name: "综合运营" },
        { icon: require("@/assets/icon_rome.png"), name: "日常工具" },
      ],
    };
  },
  methods: {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.flex-center {
  display: flex;
  align-items: center;
}
.pages-content {
  .router-nav {
    width: 1576px;
    margin-top: 24px;
    // height: 47px;
    padding: 17px 30px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .tab-box {
    .flex-center;
    .tab-li {
      cursor: pointer;
      margin-right: 48px;
      .flex-center;
    }
    img {
      margin-right: 8px;
      width: 27px;
    }
    .name {
      font-family: PingFang SC;
      font-weight: 600;
      font-size: 18px;
      color: #333333;
    }
    .activeTab {
      .name {
        color: #10a69b;
      }
    }
  }
}
</style>
